/* 
 * File:   entity_item.cpp
 * Author: jolo
 * 
 * Created on: 11. Oktober 2011, 13:18
 * Lincense: New BSD License (The BSD 2-Clause License)
 */

#include "entity_item.hpp"

#include <QtGui/QAction>

#include <model/entity.hpp>

#include "tree_view_context_menu.hpp"

namespace widgets
{

    entity_item::entity_item(model::entity_ptr e)
    : standard_item(e->short_label().c_str()),
    e_(e)
    {
        setEditable(false);
    }

    entity_item::~entity_item()
    {
    }

    tree_view_context_menu* entity_item::create_context_menu(tree_view* v, tree_model* m) {
        return new tree_view_context_menu(v, m, this);
    }
}